#include <stdio.h>

struct Coordinate {
	double x, y;
};

/**
 * 结构数组
 */
int main() {
	struct Coordinate array[] = {{253.2423, 233.99},
								 {233.888,  998.22},
								 {33.88,    239.88},
								 {3323.889, 23.233}};

	int array_length = sizeof(array) / sizeof(struct Coordinate);
	printf("array_length = %d\n", array_length);

	for (int i = 0; i < array_length; i++) {
		printf("[x = %lf, y = %lf]\n",
			   array[i].x, array[i].y);
	}

}
